include_directories(${CMAKE_SOURCE_DIR}/src/xplatform)

add_executable(
    test_register_gateway_client
    test_server_client.cpp
    xtest_client.cpp
)
add_executable(
    test_register_gateway_server
    test_pb_service.cpp
    XDirServiceHandle.cpp
)
target_link_libraries(test_register_gateway_client xplatform  protobuf protoc)
set_out_path(test_register_gateway_client)
target_link_libraries(test_register_gateway_server xplatform  protobuf protoc)
set_out_path(test_register_gateway_server)
set_runtime_name(test_register_gateway_client)
set_runtime_name(test_register_gateway_server)
#[=[
set_target_properties(test_xplatform PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/src/xplatform
)
]=]